<h1><?php __('Temas para Congressos'); ?></h1>
<div class="themes index">
    <p>
        <?php
        echo $paginator->counter(array(
            'format' => __('Página %page% de %pages%, mostrando %current% registros de %count% no total, do %start% ao %end%', true)
        ));
        ?></p>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $paginator->sort('id'); ?></th>
            <th><?php echo $paginator->sort('Nome', 'name'); ?></th>
            <th class="actions"><?php __('Ações'); ?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($themes as $theme):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
        ?>
            <tr<?php echo $class; ?>>
                <td>
                <?php echo $theme['Theme']['id']; ?>
            </td>
            <td>
                <?php echo $theme['Theme']['name']; ?>
            </td>
            <td class="actions">
                <?php echo $html->link(__('Ver', true), array('action' => 'view', $theme['Theme']['id'])); ?>
                <?php echo $html->link(__('Editar', true), array('action' => 'edit', $theme['Theme']['id'])); ?>
                <?php // echo $html->link(__('Excluir', true), array('action' => 'delete', $theme['Theme']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $theme['Theme']['id'])); ?>
            </td>
        </tr>
        <?php endforeach; ?>
            </table>

            <div class="paging">
        <?php echo $paginator->prev('<< ' . __('anterior', true), array(), null, array('class' => 'disabled')); ?>
                | 	<?php echo $paginator->numbers(); ?>
        <?php echo $paginator->next(__('próxima', true) . ' >>', array(), null, array('class' => 'disabled')); ?>
            </div>
        </div>

        <div class="actions">
            <ul>
                <li><?php echo $html->link(__('Adicionar Tema', true), array('action' => 'add')); ?></li>
    </ul>
</div>

